import axios from '../index';

const APP_LIST_URL = '/system/app/list';
const UNREAD_COUNT_URL = '/passports/bossmail/unread/count';

async function getAppList () {
  return axios.get(APP_LIST_URL);
}

async function getUnreadCount () {
  return axios.get(UNREAD_COUNT_URL);
}

export default {
  getAppList,
  getUnreadCount,
};
